import {GmFunctions, RunAt, UserScript} from "./UserScript";

const script: UserScript = {
    name: 'Request-Redirector',
    namespace: 'lisicheng.top',
    description: '请求拦截与重定向',
    version: '1.0.0',
    // includes: ['*://*'],
    matches: ['http://seller.test.akeeps.com/*', 'https://seller.akeeps.com/*'],
    grants: [
        GmFunctions.unsafeWindow,
        GmFunctions.addStyle,
        GmFunctions.getResourceText,
        GmFunctions.addElement,
        GmFunctions.log,
        GmFunctions.getResourceURL,
        GmFunctions.xmlhttpRequest,
        GmFunctions.setValue,
        GmFunctions.getValue,
        GmFunctions.registerMenuCommand
    ],
    resources: [
    ],
    runAt: RunAt.document_start
}

export default script